package com.mtw.bbs.common.core.security.context;


import com.mtw.bbs.common.core.security.UserDetails;

import java.io.Serializable;

/**
 * 认证信息实现类
 */
public class SecurityContextImpl implements SecurityContext, Serializable {

    private static final long serialVersionUID = 1L;


    private UserDetails authentication;


    public SecurityContextImpl() {}


    public SecurityContextImpl(UserDetails authentication) {
        this.authentication = authentication;
    }



    @Override
    public UserDetails getAuthentication() {
        return authentication;
    }

    @Override
    public void setAuthentication(UserDetails authentication) {
        this.authentication = authentication;
    }
}
